package com.gykfbxxh.imovie.base;

import android.content.Intent;
import android.support.v4.app.Fragment;

import com.gykfbxxh.imovie.R;


/**
 * fragment的基类
 * Created by xuxinghai on 2016/7/14.
 */
public class BaseFragment extends Fragment {

    //通用的识别码
    protected final static int REQUESTCODE_1 = 1;//通用的请求码

    /******************所有重写的方法  end **************/

    @Override
    public void startActivity(Intent intent) {
        try {
            super.startActivity(intent);
            getActivity().overridePendingTransition(R.anim.base_slide_right_in, R.anim.base_slide_remain);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
    @Override
    public void startActivityForResult(Intent intent, int requestCode) {
        try {
            super.startActivityForResult(intent, requestCode);
            getActivity().overridePendingTransition(R.anim.base_slide_right_in, R.anim.base_slide_remain);
        } catch (Exception e) {
            e.printStackTrace();
        }
    }



    /******************所有重写的方法  end **************/
}
